<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a4j="http://richfaces.org/a4j"
    xmlns:rich="http://richfaces.org/rich"
    xmlns:p="http://primefaces.prime.com.tr/ui">

<ui:composition template="../comum/template.xhtml">
	<ui:define name="conteudo">
	 <h:form styleClass="central">
	 	<rich:panel >
		
			 <f:facet name="header">
			
			 	<h:outputText value="Inserir Layer" />
			
			 </f:facet>
			
			 <h:panelGrid columns="4" cellspacing="10" >
			
				 <h:outputText value="Nome:" /><h:inputText value="#{InserirLayer.layer.layer}" size="30" />
				 
				<h:outputText value="Welcome message:" /><h:inputText value="#{InserirLayer.layer.showMessage}" size="30" />
				
				 <h:outputText value="Refresh?" /><h:selectBooleanCheckbox value="#{InserirLayer.layer.fullRefresh}"/>
				 
				 <h:outputText value="intervalo Refresh (s)" /><rich:inputNumberSpinner value="#{InserirLayer.layer.refreshInterval}" step="10" maxValue="60"/>
				 
				<h:outputText value="Distancia refresh" /><rich:inputNumberSlider value="#{InserirLayer.layer.refreshDistance}" step="50" maxValue="500"></rich:inputNumberSlider>
				 
				 
				 
				  <h:outputText value="Raio" /><rich:inputNumberSlider value="#{InserirLayer.layer.radius}" step="500" maxValue="5000"></rich:inputNumberSlider>
				 
				 <h:outputText value="BIW Style" /><rich:inplaceSelect value="#{InserirLayer.layer.biwStyle}" >  <f:selectItem itemValue="classic" itemLabel="classic"/><f:selectItem itemValue="collapsed" itemLabel="collapsed"/></rich:inplaceSelect>
				 
				 <h:outputText value="Disable Clue Menu?" /><h:selectBooleanCheckbox  value="#{InserirLayer.layer.disableClueMenu}"/>
				 
				 
			
			 </h:panelGrid>

			 <h:commandButton action="#{InserirLayer.cadastrar}" value="Cadastrar" />
		
		 </rich:panel>
	 </h:form>
	</ui:define>
</ui:composition>

</html>